package com.xy.modular.shop.entity;

import com.xy.framework.base.entity.Entity;

import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author BCK
 * @since 2019-10-12
 */
public class ProductType extends Entity {

    private static final long serialVersionUID = 1L;

    private String name;
    private String img;
    /**
     * 状态： 0 正常 1 禁用
     */
    private Boolean state;
    private String parent;
    
    private List<ProductType> children;
    
    public List<ProductType> getChildren() {
		return children;
	}

	public void setChildren(List<ProductType> children) {
		this.children = children;
	}

	public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }
    public Boolean getState() {
        return state;
    }

    public void setState(Boolean state) {
        this.state = state;
    }
    public String getParent() {
        return parent;
    }

    public void setParent(String parent) {
        this.parent = parent;
    }

    public static final String NAME = "shop_product_type.name";
    public static final String IMG = "shop_product_type.img";
    public static final String STATE = "shop_product_type.state";
    public static final String PARENT = "shop_product_type.parent";

    @Override
    public String toString() {
        return "ProductType{" +
            "name=" + name +
            ", img=" + img +
            ", state=" + state +
            ", parent=" + parent +
        "}";
    }
}
